|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Control | Property | Setting | | VB.TextBox | Name | sqlField | | Height | 300 | | Index | 0 | | Left | 1320 | | Top | 360 | | Width | 1200 | | VB.CommandButton | Name | cmdAction | | Caption | "&Delete" | | Height | 300 | | Index | 1 | | Left | 3900 | | Top | 420 | | Width | 900 | | VB.Label | Name | Label2 | | Caption | "EMail:" | | Height | 300 | | Left | 60 | | Top | 780 | | Width | 1200 | | VB.Label | Name | Label1 | | Caption | "Name:" | | Height | 300 | | Left | 60 | | Top | 420 | | Width | 1200 |
|
|
|
|
|
|
Save this form as FRMSQLTEST.FRM and the project as PRJSQLTEST.VBP. Now you're ready to add the code to the form. |
|
|
|
|
|
|
|
|
Coding the ODBC Data-Entry Form |
|
|
|
|
|
|
|
|
You need to add code in just a few places on the form. First, you need to add two form-level variables, as shown in Listing 19.23. These variables are used throughout the form. |
|
|
|
|
|